package com.lj.back.manage.scaffold.module.sys.DTO;

import com.lj.back.manage.scaffold.common.annotation.valid.Phone;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;

/**
 * @author lv
 * @version 1.0.0
 */
@Data
public class SysUserUpdateDTO {

    @NotBlank(message = "{user.password.notnull}")
    @ApiModelProperty(value = "旧密码,MD5加密传输", example = "e10adc3949ba59abbe56e057f20f883e")
    private String oldPassword;

    @NotBlank(message = "{user.password.notnull}")
    @ApiModelProperty(value = "新密码,MD5加密传输", example = "e10adc3949ba59abbe56e057f20f883e")
    private String newPassword;

    @Email(message = "{email.pattern}")
    @ApiModelProperty(value = "邮箱", example = "1234567@163.com")
    private String email;

    @Phone
    @ApiModelProperty(value = "手机号", example = "13912345678")
    private String mobile;
}
